package com.oracle.pojo;

import java.util.ArrayList;
import java.util.List;

public class SsxxExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SsxxExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSsxxIdIsNull() {
            addCriterion("ssxx_id is null");
            return (Criteria) this;
        }

        public Criteria andSsxxIdIsNotNull() {
            addCriterion("ssxx_id is not null");
            return (Criteria) this;
        }

        public Criteria andSsxxIdEqualTo(Integer value) {
            addCriterion("ssxx_id =", value, "ssxxId");
            return (Criteria) this;
        }

        public Criteria andSsxxIdNotEqualTo(Integer value) {
            addCriterion("ssxx_id <>", value, "ssxxId");
            return (Criteria) this;
        }

        public Criteria andSsxxIdGreaterThan(Integer value) {
            addCriterion("ssxx_id >", value, "ssxxId");
            return (Criteria) this;
        }

        public Criteria andSsxxIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ssxx_id >=", value, "ssxxId");
            return (Criteria) this;
        }

        public Criteria andSsxxIdLessThan(Integer value) {
            addCriterion("ssxx_id <", value, "ssxxId");
            return (Criteria) this;
        }

        public Criteria andSsxxIdLessThanOrEqualTo(Integer value) {
            addCriterion("ssxx_id <=", value, "ssxxId");
            return (Criteria) this;
        }

        public Criteria andSsxxIdIn(List<Integer> values) {
            addCriterion("ssxx_id in", values, "ssxxId");
            return (Criteria) this;
        }

        public Criteria andSsxxIdNotIn(List<Integer> values) {
            addCriterion("ssxx_id not in", values, "ssxxId");
            return (Criteria) this;
        }

        public Criteria andSsxxIdBetween(Integer value1, Integer value2) {
            addCriterion("ssxx_id between", value1, value2, "ssxxId");
            return (Criteria) this;
        }

        public Criteria andSsxxIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ssxx_id not between", value1, value2, "ssxxId");
            return (Criteria) this;
        }

        public Criteria andSsDormitoryidIsNull() {
            addCriterion("ss_dormitoryid is null");
            return (Criteria) this;
        }

        public Criteria andSsDormitoryidIsNotNull() {
            addCriterion("ss_dormitoryid is not null");
            return (Criteria) this;
        }

        public Criteria andSsDormitoryidEqualTo(Integer value) {
            addCriterion("ss_dormitoryid =", value, "ssDormitoryid");
            return (Criteria) this;
        }

        public Criteria andSsDormitoryidNotEqualTo(Integer value) {
            addCriterion("ss_dormitoryid <>", value, "ssDormitoryid");
            return (Criteria) this;
        }

        public Criteria andSsDormitoryidGreaterThan(Integer value) {
            addCriterion("ss_dormitoryid >", value, "ssDormitoryid");
            return (Criteria) this;
        }

        public Criteria andSsDormitoryidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ss_dormitoryid >=", value, "ssDormitoryid");
            return (Criteria) this;
        }

        public Criteria andSsDormitoryidLessThan(Integer value) {
            addCriterion("ss_dormitoryid <", value, "ssDormitoryid");
            return (Criteria) this;
        }

        public Criteria andSsDormitoryidLessThanOrEqualTo(Integer value) {
            addCriterion("ss_dormitoryid <=", value, "ssDormitoryid");
            return (Criteria) this;
        }

        public Criteria andSsDormitoryidIn(List<Integer> values) {
            addCriterion("ss_dormitoryid in", values, "ssDormitoryid");
            return (Criteria) this;
        }

        public Criteria andSsDormitoryidNotIn(List<Integer> values) {
            addCriterion("ss_dormitoryid not in", values, "ssDormitoryid");
            return (Criteria) this;
        }

        public Criteria andSsDormitoryidBetween(Integer value1, Integer value2) {
            addCriterion("ss_dormitoryid between", value1, value2, "ssDormitoryid");
            return (Criteria) this;
        }

        public Criteria andSsDormitoryidNotBetween(Integer value1, Integer value2) {
            addCriterion("ss_dormitoryid not between", value1, value2, "ssDormitoryid");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildIsNull() {
            addCriterion("ss_dormbuild is null");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildIsNotNull() {
            addCriterion("ss_dormbuild is not null");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildEqualTo(String value) {
            addCriterion("ss_dormbuild =", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildNotEqualTo(String value) {
            addCriterion("ss_dormbuild <>", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildGreaterThan(String value) {
            addCriterion("ss_dormbuild >", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildGreaterThanOrEqualTo(String value) {
            addCriterion("ss_dormbuild >=", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildLessThan(String value) {
            addCriterion("ss_dormbuild <", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildLessThanOrEqualTo(String value) {
            addCriterion("ss_dormbuild <=", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildLike(String value) {
            addCriterion("ss_dormbuild like", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildNotLike(String value) {
            addCriterion("ss_dormbuild not like", value, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildIn(List<String> values) {
            addCriterion("ss_dormbuild in", values, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildNotIn(List<String> values) {
            addCriterion("ss_dormbuild not in", values, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildBetween(String value1, String value2) {
            addCriterion("ss_dormbuild between", value1, value2, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsDormbuildNotBetween(String value1, String value2) {
            addCriterion("ss_dormbuild not between", value1, value2, "ssDormbuild");
            return (Criteria) this;
        }

        public Criteria andSsNumIsNull() {
            addCriterion("ss_num is null");
            return (Criteria) this;
        }

        public Criteria andSsNumIsNotNull() {
            addCriterion("ss_num is not null");
            return (Criteria) this;
        }

        public Criteria andSsNumEqualTo(String value) {
            addCriterion("ss_num =", value, "ssNum");
            return (Criteria) this;
        }

        public Criteria andSsNumNotEqualTo(String value) {
            addCriterion("ss_num <>", value, "ssNum");
            return (Criteria) this;
        }

        public Criteria andSsNumGreaterThan(String value) {
            addCriterion("ss_num >", value, "ssNum");
            return (Criteria) this;
        }

        public Criteria andSsNumGreaterThanOrEqualTo(String value) {
            addCriterion("ss_num >=", value, "ssNum");
            return (Criteria) this;
        }

        public Criteria andSsNumLessThan(String value) {
            addCriterion("ss_num <", value, "ssNum");
            return (Criteria) this;
        }

        public Criteria andSsNumLessThanOrEqualTo(String value) {
            addCriterion("ss_num <=", value, "ssNum");
            return (Criteria) this;
        }

        public Criteria andSsNumLike(String value) {
            addCriterion("ss_num like", value, "ssNum");
            return (Criteria) this;
        }

        public Criteria andSsNumNotLike(String value) {
            addCriterion("ss_num not like", value, "ssNum");
            return (Criteria) this;
        }

        public Criteria andSsNumIn(List<String> values) {
            addCriterion("ss_num in", values, "ssNum");
            return (Criteria) this;
        }

        public Criteria andSsNumNotIn(List<String> values) {
            addCriterion("ss_num not in", values, "ssNum");
            return (Criteria) this;
        }

        public Criteria andSsNumBetween(String value1, String value2) {
            addCriterion("ss_num between", value1, value2, "ssNum");
            return (Criteria) this;
        }

        public Criteria andSsNumNotBetween(String value1, String value2) {
            addCriterion("ss_num not between", value1, value2, "ssNum");
            return (Criteria) this;
        }

        public Criteria andSsRealnumIsNull() {
            addCriterion("ss_realnum is null");
            return (Criteria) this;
        }

        public Criteria andSsRealnumIsNotNull() {
            addCriterion("ss_realnum is not null");
            return (Criteria) this;
        }

        public Criteria andSsRealnumEqualTo(String value) {
            addCriterion("ss_realnum =", value, "ssRealnum");
            return (Criteria) this;
        }

        public Criteria andSsRealnumNotEqualTo(String value) {
            addCriterion("ss_realnum <>", value, "ssRealnum");
            return (Criteria) this;
        }

        public Criteria andSsRealnumGreaterThan(String value) {
            addCriterion("ss_realnum >", value, "ssRealnum");
            return (Criteria) this;
        }

        public Criteria andSsRealnumGreaterThanOrEqualTo(String value) {
            addCriterion("ss_realnum >=", value, "ssRealnum");
            return (Criteria) this;
        }

        public Criteria andSsRealnumLessThan(String value) {
            addCriterion("ss_realnum <", value, "ssRealnum");
            return (Criteria) this;
        }

        public Criteria andSsRealnumLessThanOrEqualTo(String value) {
            addCriterion("ss_realnum <=", value, "ssRealnum");
            return (Criteria) this;
        }

        public Criteria andSsRealnumLike(String value) {
            addCriterion("ss_realnum like", value, "ssRealnum");
            return (Criteria) this;
        }

        public Criteria andSsRealnumNotLike(String value) {
            addCriterion("ss_realnum not like", value, "ssRealnum");
            return (Criteria) this;
        }

        public Criteria andSsRealnumIn(List<String> values) {
            addCriterion("ss_realnum in", values, "ssRealnum");
            return (Criteria) this;
        }

        public Criteria andSsRealnumNotIn(List<String> values) {
            addCriterion("ss_realnum not in", values, "ssRealnum");
            return (Criteria) this;
        }

        public Criteria andSsRealnumBetween(String value1, String value2) {
            addCriterion("ss_realnum between", value1, value2, "ssRealnum");
            return (Criteria) this;
        }

        public Criteria andSsRealnumNotBetween(String value1, String value2) {
            addCriterion("ss_realnum not between", value1, value2, "ssRealnum");
            return (Criteria) this;
        }

        public Criteria andGlyNameIsNull() {
            addCriterion("gly_name is null");
            return (Criteria) this;
        }

        public Criteria andGlyNameIsNotNull() {
            addCriterion("gly_name is not null");
            return (Criteria) this;
        }

        public Criteria andGlyNameEqualTo(String value) {
            addCriterion("gly_name =", value, "glyName");
            return (Criteria) this;
        }

        public Criteria andGlyNameNotEqualTo(String value) {
            addCriterion("gly_name <>", value, "glyName");
            return (Criteria) this;
        }

        public Criteria andGlyNameGreaterThan(String value) {
            addCriterion("gly_name >", value, "glyName");
            return (Criteria) this;
        }

        public Criteria andGlyNameGreaterThanOrEqualTo(String value) {
            addCriterion("gly_name >=", value, "glyName");
            return (Criteria) this;
        }

        public Criteria andGlyNameLessThan(String value) {
            addCriterion("gly_name <", value, "glyName");
            return (Criteria) this;
        }

        public Criteria andGlyNameLessThanOrEqualTo(String value) {
            addCriterion("gly_name <=", value, "glyName");
            return (Criteria) this;
        }

        public Criteria andGlyNameLike(String value) {
            addCriterion("gly_name like", value, "glyName");
            return (Criteria) this;
        }

        public Criteria andGlyNameNotLike(String value) {
            addCriterion("gly_name not like", value, "glyName");
            return (Criteria) this;
        }

        public Criteria andGlyNameIn(List<String> values) {
            addCriterion("gly_name in", values, "glyName");
            return (Criteria) this;
        }

        public Criteria andGlyNameNotIn(List<String> values) {
            addCriterion("gly_name not in", values, "glyName");
            return (Criteria) this;
        }

        public Criteria andGlyNameBetween(String value1, String value2) {
            addCriterion("gly_name between", value1, value2, "glyName");
            return (Criteria) this;
        }

        public Criteria andGlyNameNotBetween(String value1, String value2) {
            addCriterion("gly_name not between", value1, value2, "glyName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}